<template>
	<view class="card" >
		<view class=" p-2 border-bottom" v-if="showhead">
			<slot name="title">
				<text v-if="headTitle" class="font-md font-weight">{{headTitle}}</text>
			</slot>
		</view>
		<view>
			<image v-if="bodyCover" :src="bodyCover" mode="widthFix"></image>
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			headTitle: String,
			bodyCover: String,
			showhead:{
				type:Boolean,
				default:true
			}
		},
		data() {
			return {

			}
		}
	}
</script>

<style>
</style>
